package Modele;

import java.util.ArrayList;

public class Spectacle  extends Model
{
	private String nom;
	private Artiste artiste;
	private ArrayList<Representation> representations = new ArrayList<Representation>();
	
	/**
	 * Constructeur
	 * @param MonEvent
	 */
	public Spectacle (int id, String nom, Artiste artiste)
	{
		setId ( id );
		this.nom = nom;
		this.artiste = artiste;
	}

	public Artiste getArtiste() 
	{
		return artiste;
	}

	public void setArtiste(Artiste artiste)
	{
		this.artiste = artiste;
	}

	/**
	 * GETTER AND SETTER
	 */
	public String getNom() 
	{
		return this.nom;
	}

	public void setNom(String nom) 
	{
		this.nom = nom;
	}
	
	public void addRepresentation ( Representation r )
	{
		representations.add ( r );
	}
	
	public ArrayList<Representation> getRepresentations ( )
	{
		return this.representations;
	}
}
